#include "CircularObstacleSketcher.h"

CircularObstacleSketcher::CircularObstacleSketcher(CircularObstacle * circularObstacle)
{
	this->circularObstacle = circularObstacle;
}

CircularObstacleSketcher::~CircularObstacleSketcher(void)
{
}

void CircularObstacleSketcher::draw()
{
	Color * circularObstacleLineColor = this->circularObstacle->getLineColor();
	Color * circularObstacleBackgroundColor = this->circularObstacle->getElementColor();
	Texture * circularObstacleTexture = this->circularObstacle->getTexture();
	Position * circularObstaclePosition = this->circularObstacle->getPosition();
	float circularObstacleRadius = this->circularObstacle->getRadius();

	if(circularObstacleTexture != NULL) {
		SketcherHelper::getInstance()->drawCircle(circularObstaclePosition,circularObstacleRadius,circularObstacleTexture,circularObstacleLineColor);
	}else {
		SketcherHelper::getInstance()->drawCircle(circularObstaclePosition,circularObstacleRadius,circularObstacleBackgroundColor,circularObstacleLineColor);
	}



}
